<?php


namespace App\Http\Middleware;

use Closure;
use App\Exceptions\BasicException;
class WhitelistMiddleware
{
    public function handle($request, Closure $next)
    {
        $sign = $request->header('sign','');
        $param = $request->all();
        $sign_new = $param['user_id'] . "789654321qaz";
//        if($sign !== md5($sign_new)){
//            throw new BasicException(-1, '请求失败');
//        }
        return $next($request);
    }
}
